package net.cassite.daf4j.jpa;

import net.cassite.daf4j.ds.*;

import javax.persistence.EntityManager;

/**
 * DataAccess的JPA实现.通过DataSource完成
 */
public class JPQLDataSource extends DataSource<JPQLContext, String, EntityManager> {
        public JPQLDataSource(EntityManager manager) {
                super(new JPQLConditionParser(),
                        new JPQLExpParser(),
                        new JPQLAndOrParser(),
                        new JPQLAroundParser(),
                        new JPQLQPParser(),
                        new JPQLEntityDataParser(),
                        new JPQLUEParser(),
                        new JPATxManager(manager),
                        manager);
        }
}
